﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true"
    CodeBehind="ModuleList.aspx.cs" Inherits="SGDemo.Permission.ModuleList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="ModuleList.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
  <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Permission/Menu/ModuleList.xml"
            PageCode="ModuleList" />
    </div>
    <div class="ui-wrapper">
        <div id="listall" class="ui-content-item ui-content-item-selected">
            <%--gvwList--%>
            <dx:ASPxGridView ID="gvwList" ClientInstanceName="gvwList" runat="server" AutoGenerateColumns="False"
                DataSourceForceStandardPaging="True" DataSourceID="odsList" Width="100%" KeyFieldName="Keyid"
                OnCustomCallback="gvwList_CustomCallback">
                <Columns>
                    <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" HeaderStyle-HorizontalAlign="Center">
                        <HeaderTemplate>
                            <dx:ASPxCheckBox ID="cbSelectAll" runat="server">
                                <ClientSideEvents CheckedChanged="doSelectOrUnselectAll" />
                            </dx:ASPxCheckBox>
                        </HeaderTemplate>
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataColumn Caption="模块名称" FieldName="ModuleName" VisibleIndex="1">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="模块编码" FieldName="ModuleCode" VisibleIndex="2">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="模块英语名称" FieldName="ModuleNameEn" VisibleIndex="3">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="排序" FieldName="Order" VisibleIndex="4">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="备注" FieldName="Remark" VisibleIndex="5">
                    </dx:GridViewDataColumn>
                </Columns>
                <ClientSideEvents SelectionChanged="doSelectionChanged" RowDblClick="doRowDblClick" />
                <SettingsBehavior AllowFocusedRow="true" />
                <SettingsLoadingPanel Text="加载中..." />
                <SettingsPager PageSize="10">
                </SettingsPager>
                <SettingsText EmptyDataRow="没有数据显示" />
            </dx:ASPxGridView>
            <%--数据源控件--%>
            <asp:ObjectDataSource ID="odsList" runat="server" SortParameterName="sortColumns"
                EnablePaging="true" StartRowIndexParameterName="startRecord" MaximumRowsParameterName="maxRecords"
                SelectCountMethod="PagingGetModuleCount" SelectMethod="PagingGetModule" TypeName="SGDemo.Permission.ModuleManage">
                <SelectParameters>
                    <asp:ControlParameter Name="filterConditions" Type="String" ControlID="hfFilterCondition"
                        PropertyName="Value" ConvertEmptyStringToNull="false" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <%--存储过滤条件--%>
            <asp:HiddenField ID="hfFilterCondition" ClientIDMode="Static" runat="server" Value=" " />
            <%--GridView数据导出--%>
            <dx:ASPxGridViewExporter ID="gvweList" GridViewID="gvwList" runat="server" PaperName="Ralph"
                FileName="用户列表">
            </dx:ASPxGridViewExporter>
        </div>
        <div id="search" class="ui-content-item">
            <ul class="ui-list">
                <li>
                    <dx:ASPxLabel ID="lblModuleName" runat="server" Text="模块名称：" AssociatedControlID="txtModuleName" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtModuleName" ClientInstanceName="txtModuleName" runat="server"
                        Width="120px">
                    </dx:ASPxTextBox>
                </li>
                <li>
                    <dx:ASPxLabel ID="lblModuleCode" runat="server" Text="模块编码：" AssociatedControlID="txtModuleCode" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtModuleCode" ClientInstanceName="txtModuleCode" runat="server"
                        Width="120px">
                    </dx:ASPxTextBox>
                </li>
                <li>
                    <dx:ASPxLabel ID="lblModuleNameEn" runat="server" Text="模块英文名称：" AssociatedControlID="txtModuleNameEne" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtModuleNameEn" ClientInstanceName="txtModuleNameEn" runat="server"
                        Width="120px">
                    </dx:ASPxTextBox>
                </li>
            </ul>
            <ul class="sl-floatcenter clearfix">
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnSubmit" ClientInstanceName="btnSubmit" runat="server" Text="查 询"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doSubmittedToSearch" />
                    </dx:ASPxButton>
                </li>
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnReset" ClientInstanceName="btnReset" runat="server" Text="重 置"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doResetToSearch" />
                    </dx:ASPxButton>
                </li>
            </ul>
        </div>
    </div>
</asp:Content>
